package yzserver.sx4a.domain;


import yzserver.sx4a.form.Department;
import yzserver.sx4a.form.District;

/**
 * Created with IntelliJ IDEA.
 * User: andrew
 * Date: 14-8-15
 * Time: 上午10:27
 * To change this template use File | Settings | File Templates.
 */
public class DepartmentDomain {
    private String  DEPARTMENTID;//部门ID
    private String  DEPARTMENTNAME;//部门名称
    private String  DEPARTMENTPARENT;//父部门ID
    private String  DISPLAYNAME;//部门全名
    private String  OPUSER;//操作人信息
    private String  ENABLE;//状态（0是有效，1是失效）
    private String  STARTDATE;//生效时间yyyy-mm-dd 如2010-03-08
    private String  ENDDATE;//失效时间yyyy-mm-dd 如2010-03-08
    private String  UPDATEDATE;//更新时间yyyy-mm-dd HH:mm:ss，如2010-03-08

    private String DEPT_STYLE; //组织形态 1公司 2部门
    private String DEPT_LEVEL;//组织级别	 	1 一级部门  2 二级部门  3 三级部门  4 四级部门
    private String DEPT_DISPLAYORDER;//显示顺序

    public DepartmentDomain() {

    }

    public DepartmentDomain(Department department) {
        this.DEPARTMENTID =department.getDepartmentid();
        this.DEPARTMENTNAME =department.getDepartmentname();
        this.DEPARTMENTPARENT =department.getDepartmentparent();
        this.DISPLAYNAME =department.getDisplayname();
        this.OPUSER =department.getOpuser();
        this.STARTDATE =department.getStartdate();
        this.ENDDATE =department.getEnddate();
        this.UPDATEDATE =department.getUpdatedate();
        this.ENABLE =department.getEnable();

        this.DEPT_STYLE =department.getDeptStyle();
        this.DEPT_LEVEL =department.getDeptLevel();
        this.DEPT_DISPLAYORDER =department.getDeptDisplayorder();
    }

    public String getDEPARTMENTID() {
        return DEPARTMENTID;
    }

    public void setDEPARTMENTID(String DEPARTMENTID) {
        this.DEPARTMENTID = DEPARTMENTID;
    }

    public String getDEPARTMENTNAME() {
        return DEPARTMENTNAME;
    }

    public void setDEPARTMENTNAME(String DEPARTMENTNAME) {
        this.DEPARTMENTNAME = DEPARTMENTNAME;
    }

    public String getDEPARTMENTPARENT() {
        return DEPARTMENTPARENT;
    }

    public void setDEPARTMENTPARENT(String DEPARTMENTPARENT) {
        this.DEPARTMENTPARENT = DEPARTMENTPARENT;
    }

    public String getDISPLAYNAME() {
        return DISPLAYNAME;
    }

    public void setDISPLAYNAME(String DISPLAYNAME) {
        this.DISPLAYNAME = DISPLAYNAME;
    }

    public String getOPUSER() {
        return OPUSER;
    }

    public void setOPUSER(String OPUSER) {
        this.OPUSER = OPUSER;
    }

    public String getENABLE() {
        return ENABLE;
    }

    public void setENABLE(String ENABLE) {
        this.ENABLE = ENABLE;
    }

    public String getSTARTDATE() {
        return STARTDATE;
    }

    public void setSTARTDATE(String STARTDATE) {
        this.STARTDATE = STARTDATE;
    }

    public String getENDDATE() {
        return ENDDATE;
    }

    public void setENDDATE(String ENDDATE) {
        this.ENDDATE = ENDDATE;
    }

    public String getUPDATEDATE() {
        return UPDATEDATE;
    }

    public void setUPDATEDATE(String UPDATEDATE) {
        this.UPDATEDATE = UPDATEDATE;
    }

    public String getDEPT_STYLE() {
        return DEPT_STYLE;
    }

    public void setDEPT_STYLE(String DEPT_STYLE) {
        this.DEPT_STYLE = DEPT_STYLE;
    }

    public String getDEPT_LEVEL() {
        return DEPT_LEVEL;
    }

    public void setDEPT_LEVEL(String DEPT_LEVEL) {
        this.DEPT_LEVEL = DEPT_LEVEL;
    }

    public String getDEPT_DISPLAYORDER() {
        return DEPT_DISPLAYORDER;
    }

    public void setDEPT_DISPLAYORDER(String DEPT_DISPLAYORDER) {
        this.DEPT_DISPLAYORDER = DEPT_DISPLAYORDER;
    }
}
